﻿<UserControl x:Class="Sautom.Modules.Client.Views.ClientEdit"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:res="clr-namespace:Sautom.I18N;assembly=Sautom.I18N" 
             xmlns:Controls="clr-namespace:Sautom.Modules.Client.Controls" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">    
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200*" />
            <ColumnDefinition Width="100*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="250*" />
        </Grid.RowDefinitions>
        <Menu Grid.ColumnSpan="2">
            <MenuItem Header="{Binding Source={x:Static res:ClientResources.SaveClientInfoBtn}}" Command="{Binding SaveCommand}" />
            <MenuItem Header="{Binding Source={x:Static res:ClientResources.BackToClientDetailsBtn}}" Command="{Binding BackCommand}" />
        </Menu>
        <Controls:ClientInfoEditor DataContext="{Binding ClientInfoEditorViewModel}" Grid.Row="1" />
    </Grid>
</UserControl>
